package pl.register.android.util.database;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

/**
 * @author Mateusz Strzelecki
 * @since 2013-05-05
 */
public class DatabaseUtil {

    public static void closeCursor(Cursor cursor) {
        if (cursor != null) {
            cursor.close();
        }
    }

    public static void closeDataBase(SQLiteDatabase database) {
        if (database != null) {
            database.close();
        }
    }

}
